<template>
  <div>
     <!-- 3.遍历数据  -->
    <van-card
      @click="$router.push({ name: '详情', params: { id: item.id } })"
      v-for="item in arr"
      :key="item.id"
      :price="item.price"
      :title="item.goodsname"
      :thumb="$pre + item.img"
    />

    <!-- 暂无数据  -->
    <van-empty v-if="arr.length == 0" description="暂无数据" /></div>
</template>

<script>
export default {
    props:['arr']
}
</script>

<style>

</style>